Optimal. Leaf size=70 \[ -\frac {a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )}{x}+\frac {b e^2 n \log \left (d+e \sqrt {x}\right )}{d^2}-\frac {b e^2 n \log (x)}{2 d^2}-\frac {b e n}{d \sqrt {x}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 70, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {2454, 2395, 44} \[ -\frac {a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )}{x}+\frac {b e^2 n \log \left (d+e \sqrt {x}\right )}{d^2}-\frac {b e^2 n \log (x)}{2 d^2}-\frac {b e n}{d \sqrt {x}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 44
Rule 2395
Rule 2454
Rubi steps
\begin {align*} \int \frac {a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )}{x^2} \, dx &=2 \operatorname {Subst}\left (\int \frac {a+b \log \left (c (d+e x)^n\right )}{x^3} \, dx,x,\sqrt {x}\right )\\ &=-\frac {a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )}{x}+(b e n) \operatorname {Subst}\left (\int \frac {1}{x^2 (d+e x)} \, dx,x,\sqrt {x}\right )\\ &=-\frac {a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )}{x}+(b e n) \operatorname {Subst}\left (\int \left (\frac {1}{d x^2}-\frac {e}{d^2 x}+\frac {e^2}{d^2 (d+e x)}\right ) \, dx,x,\sqrt {x}\right )\\ &=-\frac {b e n}{d \sqrt {x}}+\frac {b e^2 n \log \left (d+e \sqrt {x}\right )}{d^2}-\frac {a+b \log \left (c \left (d+e \sqrt {x}\right )^n\right )}{x}-\frac {b e^2 n \log (x)}{2 d^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.05, size = 67, normalized size = 0.96 \[ -\frac {a}{x}-\frac {b \log \left (c \left (d+e \sqrt {x}\right )^n\right )}{x}+b e n \left (\frac {e \log \left (d+e \sqrt {x}\right )}{d^2}-\frac {e \log (x)}{2 d^2}-\frac {1}{d \sqrt {x}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.44, size = 65, normalized size = 0.93 \[ -\frac {b e^{2} n x \log \left (\sqrt {x}\right ) + b d e n \sqrt {x} + b d^{2} \log \relax (c) + a d^{2} - {\left (b e^{2} n x - b d^{2} n\right )} \log \left (e \sqrt {x} + d\right )}{d^{2} x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.18, size = 187, normalized size = 2.67 \[ \frac {{\left ({\left (\sqrt {x} e + d\right )}^{2} b n e^{3} \log \left (\sqrt {x} e + d\right ) - 2 \, {\left (\sqrt {x} e + d\right )} b d n e^{3} \log \left (\sqrt {x} e + d\right ) - {\left (\sqrt {x} e + d\right )}^{2} b n e^{3} \log \left (\sqrt {x} e\right ) + 2 \, {\left (\sqrt {x} e + d\right )} b d n e^{3} \log \left (\sqrt {x} e\right ) - b d^{2} n e^{3} \log \left (\sqrt {x} e\right ) - {\left (\sqrt {x} e + d\right )} b d n e^{3} + b d^{2} n e^{3} - b d^{2} e^{3} \log \relax (c) - a d^{2} e^{3}\right )} e^{\left (-1\right )}}{{\left (\sqrt {x} e + d\right )}^{2} d^{2} - 2 \, {\left (\sqrt {x} e + d\right )} d^{3} + d^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.09, size = 0, normalized size = 0.00 \[ \int \frac {b \ln \left (c \left (e \sqrt {x}+d \right )^{n}\right )+a}{x^{2}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.48, size = 61, normalized size = 0.87 \[ \frac {1}{2} \, b e n {\left (\frac {2 \, e \log \left (e \sqrt {x} + d\right )}{d^{2}} - \frac {e \log \relax (x)}{d^{2}} - \frac {2}{d \sqrt {x}}\right )} - \frac {b \log \left ({\left (e \sqrt {x} + d\right )}^{n} c\right )}{x} - \frac {a}{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.80, size = 58, normalized size = 0.83 \[ \frac {2\,b\,e^2\,n\,\mathrm {atanh}\left (\frac {2\,e\,\sqrt {x}}{d}+1\right )}{d^2}-\frac {b\,\ln \left (c\,{\left (d+e\,\sqrt {x}\right )}^n\right )}{x}-\frac {b\,e\,n}{d\,\sqrt {x}}-\frac {a}{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 63.06, size = 554, normalized size = 7.91 \[ \begin {cases} - \frac {2 a d^{3} \sqrt {x}}{2 d^{3} x^{\frac {3}{2}} + 2 d^{2} e x^{2}} - \frac {2 a d^{2} e x}{2 d^{3} x^{\frac {3}{2}} + 2 d^{2} e x^{2}} - \frac {2 b d^{3} n \sqrt {x} \log {\left (d + e \sqrt {x} \right )}}{2 d^{3} x^{\frac {3}{2}} + 2 d^{2} e x^{2}} - \frac {2 b d^{3} \sqrt {x} \log {\relax (c )}}{2 d^{3} x^{\frac {3}{2}} + 2 d^{2} e x^{2}} - \frac {2 b d^{2} e n x \log {\left (d + e \sqrt {x} \right )}}{2 d^{3} x^{\frac {3}{2}} + 2 d^{2} e x^{2}} - \frac {2 b d^{2} e n x}{2 d^{3} x^{\frac {3}{2}} + 2 d^{2} e x^{2}} - \frac {2 b d^{2} e x \log {\relax (c )}}{2 d^{3} x^{\frac {3}{2}} + 2 d^{2} e x^{2}} - \frac {b d e^{2} n x^{\frac {3}{2}} \log {\relax (x )}}{2 d^{3} x^{\frac {3}{2}} + 2 d^{2} e x^{2}} + \frac {2 b d e^{2} n x^{\frac {3}{2}} \log {\left (d + e \sqrt {x} \right )}}{2 d^{3} x^{\frac {3}{2}} + 2 d^{2} e x^{2}} - \frac {2 b d e^{2} n x^{\frac {3}{2}}}{2 d^{3} x^{\frac {3}{2}} + 2 d^{2} e x^{2}} + \frac {2 b d e^{2} x^{\frac {3}{2}} \log {\relax (c )}}{2 d^{3} x^{\frac {3}{2}} + 2 d^{2} e x^{2}} - \frac {b e^{3} n x^{2} \log {\relax (x )}}{2 d^{3} x^{\frac {3}{2}} + 2 d^{2} e x^{2}} + \frac {2 b e^{3} n x^{2} \log {\left (d + e \sqrt {x} \right )}}{2 d^{3} x^{\frac {3}{2}} + 2 d^{2} e x^{2}} + \frac {2 b e^{3} x^{2} \log {\relax (c )}}{2 d^{3} x^{\frac {3}{2}} + 2 d^{2} e x^{2}} & \text {for}\: d \neq 0 \\- \frac {a}{x} - \frac {b n \log {\relax (e )}}{x} - \frac {b n \log {\relax (x )}}{2 x} - \frac {b n}{2 x} - \frac {b \log {\relax (c )}}{x} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________